package com.tony.spring.mode.decorator;

/**
 * 老师装饰器
 * @author Tony
 *
 */
public class DemoServiceTeacherDecorator implements DemoService{

    private DemoService demoService ;
	
    public DemoServiceTeacherDecorator(DemoService demoService) {
    	this.demoService = demoService;
	}
	
	@Override
	public void demo() {
		System.out.println("主持人通知tony老师来讲课");
		demoService.demo();
	}

}
